<% content_for :title do %>
  <%= :cfw_title.localize_with_args :user => resource.user.render, :date => resource.created_at.l(:long) %>
<% end %>

<h3><%= :cfw_events.l %></h3>

<ul>
  <% resource.events.each do |event| %>
    <li><%= h event.name %></li>
  <% end %>
</ul>

<h3><%= :cfw_delivery_successes.l %></h3>
<td>
  <ul>
  <% resource.delivery_successes.each do |status| %>
    <li><%= h status.email %><%= ": #{h(status.message)}" if status.respond_to? :message %> (<%= link_to status.user.render, admin_user_url(status.user) %>)</li>
  <% end %>
  </ul>
</td>

<% if resource.delivery_errors.count > 0 %>
<h3><%= :cfw_delivery_errors.l %></h3>

<td>
  <ul>
  <% resource.delivery_errors.each do |status| %>
    <li><%= h status.email %><%= ": #{h(status.message)}" if status.respond_to? :message %> (<%= link_to status.user.render, admin_user_url(status.user) %>)</li>
  <% end %>
  </ul>
</td>
<% else %>
<p><%= :cfw_no_delivery_errors.l %></p>
<% end %>